Inheritance diagram for TBasicDistantLight:

Public Member Functions | |
| TBasicDistantLight () | |
| virtual MCCOMErr MCCOMAPI | ExtensionDataChanged () |
| virtual MCCOMErr MCCOMAPI | SetTransform (TTransform3D *transform) |
| virtual MCCOMErr MCCOMAPI | GetDirection (const TVector3 &point, TVector3 &resultDirection, real &resultDistance) |
| virtual boolean MCCOMAPI | GetColor (const TVector3 &point, const TVector3 &direction, const real distance, TMCColorRGB &result, real &ShadowIntensity) |
| virtual boolean MCCOMAPI | IsVisibleInPerspective () |
| virtual uint32 MCCOMAPI | GetPrimitiveID () |
| virtual MCCOMErr MCCOMAPI | ForEachShadowBuffer (ForEachShadowBufferCallback proc, void *priv) |
| virtual boolean MCCOMAPI | GetUVfromDirection (TVector2 &uv, const TVector3 &direction) const |
| virtual MCCOMErr MCCOMAPI | GetStandardLight (TStandardLight &light) const |
| virtual void MCCOMAPI | InitSampling (const TBBox3D &sceneBoundingBox, real &solidAngle, int32 ®ionCount) |
| virtual void MCCOMAPI | GetRandomRay (int32 regionIndex, Ray3D &ray) const |
| virtual int32 MCCOMAPI | GetShadowBufferCount () const |
| virtual void MCCOMAPI | GetShadowBuffer (int32 bufferIndex, I3DShCamera **camera, TBBox2D &uvBox) const |
Public Attributes | |
| Data | fData |
Static Public Attributes | |
| static const MCGUID | ClassId |
Protected Attributes | |
| TMCColorRGB | fBritColor |
| TTransform3D | fTransform |
| TVector3 | fI |
| TVector3 | fJ |
| TVector3 | fD |
| TVector2 | fMin |
| TVector2 | fMax |
| TMCArray< int32 > | fSampleIndices |
Classes | |
| struct | Data |
|
|
|
|
|
Called each time a parameter of the parameter map (Pmap) is modified. This should only be used to invalidate caches and should be quick since it can be called many times. Reimplemented from TBasicDataExchanger. |
|
||||||||||||
|
Reimplemented from TBasicLight. |
|
||||||||||||||||||||||||
|
Returns the color of light seen through a given point. When using a spot, use the position parameter and the light source position and orientation to determine whether a point is in the light beam or not. When using a sun, use the direction parameter to calculate the intensity. When lighting is based on distance, (such as distance fall-off), use the distance parameter.
Reimplemented from TBasicLight. |
|
||||||||||||||||
|
Returns the direction from the point to the light source as well as the distance between the surface point and light source. GetDirection() is called prior to GetColor() to perform preliminary calculations. The surface point is the point on the object where the light is about to be calculated. A light bulb typically calculates resultDirection by subtracting the postion point to the light source origin, then normalizes the results. A simulated sun light returns its light direction in resultDirection, and the maximum possible value in resultDistance.
Reimplemented from TBasicLight. |
|
|
Returns the ID of the primitive that is display in place of the light. Reimplemented from TBasicLight. |
|
||||||||||||
|
Returns a random ray starting from the light The rays should sample uniformly a solid angle that contains at least the intersection of the light cone (or sphere) and the scene.
Reimplemented from TBasicLight. |
|
||||||||||||||||
|
Returns a camera equivalent to a shadow buffer
Reimplemented from TBasicLight. |
|
|
Returns the number of shadow buffer needed for this light Reimplemented from TBasicLight. |
|
|
Retrieves a standard description of the light for use in the interactive renderer.
Reimplemented from TBasicLight. |
|
||||||||||||
|
returns the uv for the gel given a direction
Reimplemented from TBasicLight. |
|
||||||||||||||||
|
Initialize sampling of the light and returns the solid angle containing the sampling rays. It must be called before GetRandomRay
Reimplemented from TBasicLight. |
|
|
Returns true if the light should be displayed in the 3D View. In this case, the lights is displayed with the geometry of the primitive given by GetPrimitiveID(). If it returns false, then the light is not displayed, this is used for sun lights for example. Reimplemented from TBasicLight. |
|
|
Called to tell a light source its position and orientation in space. This function is used to cache transform information to speed up GetDirection() and GetColor().
Reimplemented from TBasicLight. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5